package com.example.business_oa.controller;

import com.example.business_oa.service.UpdateSalaryPerson;
import com.example.business_oa.service.ZfPositiveService;
import com.example.comment_oa.pojos.Positive;
import com.example.comment_oa.response.AjaxResponse;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController
@CrossOrigin
@RequestMapping("/businessOa")
public class ZfPositiveController {
    @Resource
    ZfPositiveService zfPositiveService;

    @PostMapping("Positive/insertadd")
    public AjaxResponse insertadd(@RequestBody Positive positive){
        int b = zfPositiveService.insertadd(positive);
        return AjaxResponse.success(b);
    }
}
